package com.sts.entity;
import com.baomidou.mybatisplus.annotation.*;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
/**
 * 工单实体类
 * 核心业务实体，用于跟踪用户提交的问题或请求
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ticket")
public class Ticket {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String description;

    private String type;

    private String priority;

    private String status;

    @TableField("creator_id")
    private Long creatorId;

    @TableField("handler_id")
    private Long handlerId;

    private Integer deleted;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}